package com.tanhua.dubbo.api;


import com.tanhua.manage.domain.mongo.Publish;
import com.tanhua.manage.domain.vo.PageResult;

public interface PublishApi {


    /**
     * 发布动态
     *
     */
    public void add(Publish publish);

    PageResult findFriendPublishByTimeline(Long userId, Long page, Long pageSize);

    /**
     * 查询推荐动态
     * @param loginUserId
     * @param page
     * @param pageSize
     * @return
     */
    PageResult findRecommendPublishByTimeline(Long loginUserId, Long page, Long pageSize);

    /**
     * 查询我的动态
     */
    PageResult findMyPublishListByTimeLine(Long loginUserId, Long page, Long pageSize);

    /**
     * 查询单挑动态
     * @return
     */
    Publish findById(String publishId);
}
